package com.wo.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wo.cloud.admin.entity.SysMenu;
import com.wo.cloud.admin.vo.SysMenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/5/19 17:36
 * Description:
 */

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    // 获取该角色的菜单
    List<SysMenuVo> getTreeMenu(@Param("roleId") String roleId);

    // 获取角色权限
    List<String> getPermissions(@Param("roleId") String roleId);
}
